package com.lmj.mybatisPlus.entry.convert;

import com.lmj.mybatisPlus.entry.po.EmployeeVsUser;
import com.lmj.mybatisPlus.entry.vo.EmployeeVsUserVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

/**
 * 功能描述:
 *
 * @author: 李明杰
 * @date: 2021/12/3 17:10
 */
@Mapper(componentModel = "spring")
public interface EmployeeVsUserConvert {

    @Mapping(source = "employeeVsUser.user.id", target = "userId")
    EmployeeVsUserVO po2vo(EmployeeVsUser employeeVsUser);
}
